<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@page import="iwpl.project.entities.Accounts"%>
<%@page import="iwpl.project.dao.AccountsDAO"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<center>

	<html>
		<head>
			<base href="<%=basePath%>">

			<title>Login</title>

			<meta http-equiv="pragma" content="no-cache">
			<meta http-equiv="cache-control" content="no-cache">
			<meta http-equiv="expires" content="0">
			<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
			<meta http-equiv="description" content="This is my page">
			<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
			<style type="text/css">
.style1 {
	width: 100%;
	height: 142px;
}

.style2 {
	width: 55px;
}
</style>
		</head>
<%
	Accounts ac = new Accounts();
	AccountsDAO dao = new AccountsDAO();
	
 %>
		<body>
			<table cellpadding="0" cellspacing="0">
				<tr>
					<td>
						
								
								<form id ="frmLogin" action="./servlet/Control_Account" name="frmLogin"  method="get">


									<table align="center" bgcolor="#9ea49f">
										<tr align="center">
											<td colspan="2">
												Login
											</td>
										</tr>
										<tr>
											<td>
												<input type ="hidden" name="action" value="Login" />
												UserName
											</td>
											<td>
												<input type="text" name="txtUserName" />
											</td>
										</tr>
										<tr>
											<td>
												Pass
											</td>
											<td>
												<input type="password" name="txtPass" />
											</td>
										</tr>
										<tr align="center">

											<td colspan="2" >
												<input type="submit" name="btnLogin"

													style="border-bottom-color: #191919" value="Login" />

												<input type="reset" name="btnCancel"
													style="border-bottom-color: #191919" value="Cancel" />
											</td>
										</tr>
										<tr>
									<td colspan="2">
										<%
											if(request.getParameter("message")!=null)
											{
												String a = request.getParameter("message").toString();
												out.print(a);
											}
										 %>
									</td>
								</tr>
									</table>
									</form>
								</td>
							</tr>
						</table>
				

		</body>
	</html>
</center>